﻿-- =============================================
-- Script Template
-- =============================================
USE [DB_Ex]
GO

/****** Object:  Table [dbo].[MoneyConfirm]    Script Date: 12/05/2011 10:16:56 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[MoneyConfirm](
	[id] [uniqueidentifier] NOT NULL,
	[D] [date] NOT NULL,
	[D_Confirm] [datetime] NOT NULL,
	[ShopName] [nvarchar](150) NOT NULL,
	[Amount] [money] NOT NULL,
	[Approver_Login] [nvarchar](150) NOT NULL,
	[Approver_Name] [nvarchar](150) NOT NULL,
 CONSTRAINT [PK_Table_MoneyConfirm] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[MoneyConfirm] ADD  CONSTRAINT [DF_MoneyConfirm_id]  DEFAULT (newid()) FOR [id]
GO

ALTER TABLE [dbo].[MoneyConfirm] ADD  CONSTRAINT [DF_MoneyConfirm_D_Confirm]  DEFAULT (getdate()) FOR [D_Confirm]
GO


